package com.yxs.school.util;

import java.util.List;
import java.util.Map;
import java.util.Set;

public class Empty {
    public static boolean isEmpty(String params){
        if (params==null||"".equals(params))
            return true;
        else
            return false;
    }
    public static boolean isEmpty(List<Object> list){
        if (list==null||list.size()==0)
            return true;
        else
            return false;
    }
    public static boolean isEmpty(Integer[] arr){
        if (arr==null||arr.length==0)
            return true;
        else
            return false;
    }
    public static boolean isEmpty(char [] chars){
        if (chars==null||chars.length==0)
            return true;
        else
            return false;
    }
    public static boolean isEmpty(String [] strings){
        if (strings==null||strings.length==0)
            return true;
        else
            return false;
    }
    public static boolean isEmpty(Map<Object,Object> map){
        if (map.isEmpty())
            return true;
        else
            return false;
    }public static boolean isEmpty(Set<Object> set){
        if (set.isEmpty())
            return true;
        else
            return false;
    }

}
